import request from '@/utils/request';
import { message } from 'ant-design-vue';

export async function actionFn(data, params, callBack) {
  const res = await request.post(data.url, {
    ...params
  });
  if (res.data.code === 1) {
    message.success(res.data.msg);
    callBack();
  }else if (res.data.code === 0){
		message.error(res.data.msg);
	}
}

export default actionFn;
